﻿using System.Numerics;
/// <summary>
/// https://leetcode-cn.com/problems/plus-one/
/// </summary>
public class Solution
{
    public int[] PlusOne(int[] digits)
    {
        var numberString = string.Join("", digits);
        var value = BigInteger.Parse(numberString);
        value += 1;
        return value.ToString().Select((c) => c - '0').ToArray();
    }
}